<!--
  板块标题
-->
<template>
  <div class="plate-title-wrap">
    <div class="plate-title-left">
      <span v-if="isRequired" class="required">*</span>
      <span class="plate-title-text">{{title}}</span>
    </div>
    <div class="plate-title-right">
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: "plateTitle", // 板块标题
  props: {
    isRequired: {
      type: Boolean,
      default: false,
    },
    title: {
      type: String,
      required: true,
    }
  },
}
</script>

<style lang="scss">
.plate-title-wrap {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  .plate-title-left {
    .required {
      color: #FF4355;
    }
    .plate-title-text {
      line-height: px2vh(54);
      font-size: px2vw(40);
      color: #666666;
      font-weight: bold;
    }
  }
}
</style>
